<div>
    <div class="modal-body" th:object="${class}">
        <input type="hidden" name="classId" th:value="*{classId}">
        <div class="form-group row">
            <label for="className" class="col-form-label col-sm-3">班级名称:</label>
            <input type="text" class="form-control col-sm-8" id="className" name="className" th:value="*{className}" placeholder="请输入班级名称" required>
        </div>
        <div class="form-group row">
            <label for="classSize" class="col-form-label col-sm-3">班级人数:</label>
            <input type="text" class="form-control col-sm-8" id="classSize" name="classSize" th:value="*{classSize}" placeholder="请输入班级人数" required>
        </div>
        <div class="form-row">
            <div class="form-group row col-sm-6">
                <label for="teacherName" class="col-form-label col-sm-6">班主任名称:</label>
                <input type="text" class="form-control col-sm-5" id="teacherName"  th:value="*{teacherInfo}!=null?*{teacherInfo.teacherName}:''" readonly>
            </div>
            <div class="form-group row col-sm-6">
                <label for="teacherNumber" class="col-form-label col-sm-4 ">工号:</label>
                <input type="text" class="form-control col-sm-8" id="teacherNumber" name="teacherNumber"  th:value="*{teacherInfo}!=null?*{teacherInfo.teacherNumber}:''" onkeyup="this.value=this.value.replace(/[^\0-9\.]/g,'');" placeholder="请输入教师工号"  required>
            </div>
        </div>

    </div>
    <div class="modal-footer">
        <input class="btn btn-primary"type="submit" value="提交">
        <button type="button" class="btn btn-secondary" data-dismiss="modal" id="classDialogClose">Close</button>
    </div>
</div>